package com.han.elasticsearch.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @ClassName User
 * @Description TODO
 * @Author hanjiale
 * @Date 2021/12/15 21:54
 * @Version 1.0
 */
@Data
@TableName(value = "USER")
public class User {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField(value = "age")
    private Integer age;
    @TableField(value = "sex")
    private Integer sex;
    @TableField(value = "stu_name")
    private String stuName;
    @TableField(value = "birth")
    private String birth;
    @TableField(value = "remark")
    private String remark;

    public User(Integer id,Integer age,Integer sex,String stuName,String birth,String remark){
        this.id = id;
        this.age = age;
        this.sex = sex;
        this.stuName = stuName;
        this.birth = birth;
        this.remark = remark;
    }

}
